<?php
/**
 * Created by PhpStorm.
 * User: iguoyi
 * Date: 12/14/17
 * Time: 11:12 AM
 */

namespace backend\controllers;


use backend\services\DoubleLotteryService;

class DoubleController extends AdminBaseController
{
    /**
     * action 之前就要执行的代码
     * @param \yii\base\Action $action
     * @return bool
     * @throws \yii\web\BadRequestHttpException
     */
    public function beforeAction($action)
    {
        $this->service = new DoubleLotteryService();
        $this->service->searchField = 'issue';
        return parent::beforeAction($action); // TODO: Change the autogenerated stub
    }

}